package com.starsea.book.ui.newpage.weidget.banner.transformer

import android.view.View
import androidx.core.view.ViewCompat

/**
 * 描述:
 */
class StackPageTransformer : BannerPageTransformer() {
  override fun handleInvisiblePage(view: View, position: Float) {}
  override fun handleLeftPage(view: View, position: Float) {}
  override fun handleRightPage(view: View, position: Float) {
    ViewCompat.setTranslationX(view, -view.width * position)
  }
}